Class IndexedHeapNode
- java.lang.Object
-
- edu.claflin.finder.logic.communities.struct.fast_greedy_struct.HeapNodeFG
-
- edu.claflin.finder.logic.communities.struct.fast_greedy_struct.IndexedHeapNode
-
- All Implemented Interfaces:
java.lang.Comparable<HeapNodeFG>
public class IndexedHeapNode extends HeapNodeFG
- Author:
- César Martín Pavón
-
-
Field Summary
Fields Modifier and Type Field Description private inti-
Fields inherited from class edu.claflin.finder.logic.communities.struct.fast_greedy_struct.HeapNodeFG
EPSILON
-
-
Constructor Summary
Constructors Constructor Description IndexedHeapNode(int i, int j, double q)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(HeapNodeFG that)Compare this HeapNode to that HeapNode.booleanequals(java.lang.Object o)intgetI()voidsetI(int i)voidsetInfo(int i, int j, double q)java.lang.StringtoString()-
Methods inherited from class edu.claflin.finder.logic.communities.struct.fast_greedy_struct.HeapNodeFG
compareToQ, getJ, getQ, setInfo, setJ, setQ
-
-
-
-
Method Detail
-
getI
public int getI()
- Returns:
- the i
-
setI
public void setI(int i)
-
setInfo
public void setInfo(int i, int j, double q)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classHeapNodeFG
-
compareTo
public int compareTo(HeapNodeFG that)
Description copied from class:HeapNodeFGCompare this HeapNode to that HeapNode. We want before means higher Q, then smaller j- Specified by:
compareToin interfacejava.lang.Comparable<HeapNodeFG>- Overrides:
compareToin classHeapNodeFG- Parameters:
that- the HeapNode to compare this to- Returns:
- -1 if this goes before, 0 if they are equal, 1 if that goes before
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHeapNodeFG
-
-